package cn.lili.modules.publish.serviceimpl;

import java.util.Date;
import java.util.List;

import cn.lili.modules.publish.entity.LiPublishInformation;
import cn.lili.modules.publish.mapper.LiPublishInformationMapper;
import cn.lili.modules.publish.service.ILiPublishInformationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-19
 */
@Service
public class LiPublishInformationServiceImpl extends ServiceImpl<LiPublishInformationMapper, LiPublishInformation> implements ILiPublishInformationService {
    @Autowired
    private LiPublishInformationMapper liPublishInformationMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public LiPublishInformation selectLiPublishInformationById(Long id)
    {
        return liPublishInformationMapper.selectLiPublishInformationById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param liPublishInformation 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<LiPublishInformation> selectLiPublishInformationList(LiPublishInformation liPublishInformation)
    {
        return liPublishInformationMapper.selectLiPublishInformationList(liPublishInformation);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param liPublishInformation 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertLiPublishInformation(LiPublishInformation liPublishInformation)
    {
        liPublishInformation.setCreateTime(new Date());
        return liPublishInformationMapper.insertLiPublishInformation(liPublishInformation);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param liPublishInformation 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateLiPublishInformation(LiPublishInformation liPublishInformation)
    {
        liPublishInformation.setUpdateTime(new Date());
        return liPublishInformationMapper.updateLiPublishInformation(liPublishInformation);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteLiPublishInformationByIds(Long[] ids)
    {
        return liPublishInformationMapper.deleteLiPublishInformationByIds(ids);
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteLiPublishInformationById(Long id)
    {
        return liPublishInformationMapper.deleteLiPublishInformationById(id);
    }

}
